// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'IntegrationConfigId',
        footer: "Foots",
        cnName: '集成配置',
        name: 'IntegrationConfig',
        newTabEdit: false,
        url: "/IntegrationConfig/",
        sortName: "IntegrationConfigId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ClientSysId":"","ClientId":"","ClientSecket":"","ThirdInstanceId":"","AppKey":"","AppSecket":"","AppToken":"","IsEnabled":""};
    const editFormOptions = [[{"dataKey":"集成对接系统","data":[],"title":"集成系统","required":true,"field":"ClientSysId","type":"select"}],
                              [{"title":"应用标识","field":"ClientId","type":"text"}],
                              [{"title":"应用密钥","field":"ClientSecket","type":"textarea"}],
                              [{"title":"第三方实例Id","field":"ThirdInstanceId","type":"text"}],
                              [{"title":"appKey","field":"AppKey","type":"textarea"}],
                              [{"title":"appSecket","field":"AppSecket","type":"textarea"}],
                              [{"title":"appToken","field":"AppToken","type":"textarea"}],
                              [{"dataKey":"是否","data":[],"title":"是否启用","required":true,"field":"IsEnabled","type":"radio"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'IntegrationConfigId',title:'集成配置标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ClientSysId',title:'集成系统',type:'int',bind:{ key:'集成对接系统',data:[]},width:110,require:true,align:'left'},
                       {field:'ClientId',title:'应用标识',type:'string',width:180,align:'left'},
                       {field:'ClientSecket',title:'应用密钥',type:'string',width:180,align:'left'},
                       {field:'ThirdInstanceId',title:'第三方实例Id',type:'string',width:220,align:'left'},
                       {field:'AppKey',title:'appKey',type:'string',width:220,align:'left'},
                       {field:'AppSecket',title:'appSecket',type:'string',width:220,align:'left'},
                       {field:'AppToken',title:'appToken',type:'string',width:220,align:'left'},
                       {field:'IsEnabled',title:'是否启用',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}